/*
 * Copyright 2018 JDCLOUD.COM
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http:#www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * 
 * 
 *
 * 
 * Contact: 
 *
 * NOTE: This class is auto generated by the jdcloud code generator program.
 */


using System;
using System.Collections.Generic;
using System.Text;


namespace JDCloudSDK.Monitor.Model
{

    /// <summary>
    ///  describeCustomAlarmDetail
    /// </summary>
    public class DescribeCustomAlarmDetail
    {

        ///<summary>
        /// 聚合方式，多个维度聚合成1个维度时，多维度值之间的聚合方式。可选值:sum、avg、min、max
        ///</summary>
        public string AggrType{ get; set; }
        ///<summary>
        /// 报警规则ID
        ///</summary>
        public string AlarmId{ get; set; }
        ///<summary>
        /// 规则状态，当一个规则下同时存在报警、数据不足、正常的资源时，规则状态按 报警&gt;数据不足&gt;正常的优先级展示
        /// 监控项状态：-1 未启用 1正常，2告警，4数据不足
        ///</summary>
        public long? AlarmStatus{ get; set; }
        ///<summary>
        /// 创建时间
        ///</summary>
        public DateTime? CreateTime{ get; set; }
        ///<summary>
        /// 资源维度，指定监控数据实例的维度标签,如resourceId&#x3D;id。(请确认资源的监控数据带有该标签，否则规则会报数据不足)，至少指定一个
        ///</summary>
        public List<DimensionParamDetail> Dimensions{ get; set; }
        ///<summary>
        /// 拼接好的资源维度信息
        ///</summary>
        public string DimensionsText{ get; set; }
        ///<summary>
        /// 是否启用, 1表示启用规则，0表示禁用规则，默认为1
        ///</summary>
        public long? Enabled{ get; set; }
        ///<summary>
        /// 命名空间
        ///</summary>
        public string Namespace{ get; set; }
        ///<summary>
        /// 命名空间名称
        ///</summary>
        public string NamespaceName{ get; set; }
        ///<summary>
        /// 规则绑定资源所在地域
        ///</summary>
        public string Region{ get; set; }
        ///<summary>
        /// 规则名称
        ///</summary>
        public string RuleName{ get; set; }
        ///<summary>
        /// 规则的触发条件设置选项
        ///</summary>
        public List<CustomRuleDetail> RuleOption{ get; set; }
        ///<summary>
        /// 规则版本  v1  v2
        ///</summary>
        public string RuleVersion{ get; set; }
    }
}
